package com.xzzz.irda.auth.core.token;

import com.xzzz.irda.auth.core.authorization.Authorization;

/**
 * TOKEN 生成器
 *
 * 默认 UUID 生成
 * @see DefaultTokenGenerator
 *
 * @author wangyf
 * 
 */
public interface TokenGenerator {

    /**
     * 生成 TOKEN
     *
     * @param authorization 授权主体
     * @return TOKEN
     */
    String generate(Authorization authorization);
}
